<?php
include_once("../modules/checkA.php");
include_once("../../config.php"); 
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'department'");
?>



<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
?>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_.'/controlbase/modules/head.php'); ?>

</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controlbase/modules/topbar.php'; ?></div>

<div id="container" class="member">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controlbase/modules/sidebar.php'; ?>
        </div>


<div id="content"> 




<div class="box department-add-box layui-form">
<h1>添加部门</h1>





<form id="add-department-form" method="post" action="detail-add-function.php?nav-itemed=department" enctype="multipart/form-data" >

<form class="layui-form" action="">

  <div class="layui-form-item">
    <label class="layui-form-label">部门名称</label>
    <div class="layui-input-block">
      <input type="text" name="name" required  lay-verify="required" placeholder="请输入名字" autocomplete="off" class="layui-input">
    </div>
  </div>


    <div class="layui-form-item">
        <label class="layui-form-label">位置</label>
        <div class="layui-input-block">
            <input type="text" name="location" placeholder="请输入部门位置" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">电话</label>
        <div class="layui-input-block">
            <input type="text" name="phone" placeholder="请输入部门电话" autocomplete="off" class="layui-input">
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">建立日期</label>
        <div class="layui-input-block">

            <input type="text" name="builddate" id="date" autocomplete="off"  placeholder="请输入建立日期" class="layui-input"  value="<? echo $detail['applydate']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
        </div>
    </div>




    <?
    $agean_list=select_lines_all_items($table_Prefix."employee","nid desc","","0");
    ?>

    <div class="layui-form-item">
        <label class="layui-form-label">负责人</label>
        <div class="layui-input-block">
            <select name="principal" lay-search="">

                <option value=""></option>
                <? for($i=0;$i<count($agean_list);$i++){ ?>
                    <option value="<? echo $agean_list[$i]['nid'] ?>"><? echo $agean_list[$i]['nid'] ?> : <? echo $agean_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>




        <div class="layui-form-item">
    <label class="layui-form-label">是否报名点</label>
    <div class="layui-input-block">
      <input type="radio" name="tag" value="是" title="是">
      <input type="radio" name="tag" value="否" title="否" checked>
    </div>
  </div>




    <div class="layui-form-item">
        <label class="layui-form-label">当前状态</label>
        <div class="layui-input-block">
            <input type="radio" name="status" value="启用" title="启用" checked>
            <input type="radio" name="status" value="关闭" title="关闭" >
        </div>
    </div>


  
    <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">备注</label>
    <div class="layui-input-block">
      <textarea name="remark" placeholder="备注" class="layui-textarea"></textarea>
    </div>
  </div>
  
  
  
  
 
 
 
 


  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
 


 
 
        </div>
		
 
 
<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>








<?php include_once('../modules/footer.php'); ?> </body>
</html>
